package com.action;

import com.man.AnnounceCtrl;
import com.std.Announce;

public class UserAnnounceDetailAction {
	private int announceId;
	private Announce announce;
	public int getAnnounceId() {
		return announceId;
	}
	public void setAnnounceId(int announceId) {
		this.announceId = announceId;
	}
	public Announce getAnnounce() {
		return announce;
	}
	public void setAnnounce(Announce announce) {
		this.announce = announce;
	}
	public String execute() {
		AnnounceCtrl announceCtrl=new AnnounceCtrl();
		announce=announceCtrl.getItem(announceId);
		announceCtrl.close();
		return "success";
	}
}
